<template>
  <div class="footer">
    <van-tabbar route>
      <van-tabbar-item replace to="/home" icon="home-o">首页</van-tabbar-item>
      <!-- <van-tabbar-item replace to="/percenter" icon="friends-o" @click ="goPerson()">个人</van-tabbar-item> -->
      <van-tabbar-item  icon="friends-o" @click ="goPerson()">个人</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: "app-footer",
  data() {
    return {};
  },
  methods: {
    // goWorkAdd() {
    //   this.$router.push({
    //     // path: "/FunApproL",
    //     query: {
    //       // AnualID: this.AnualID,
    //       // title: "add"
    //     }
    //   });
    // },
    goPerson(){
      const PWD = sessionStorage.getItem('PWD');
      if(PWD != null){
            this.$router.push({
              path: "/percenter",
            });
      }else{
           this.$router.push({
              path: "/login",
            });
      }
    },
  },
};
</script>

<style lang="less" scoped>
.foot-icon {
  height: 50px;
  position: absolute;
  bottom: 0px;
  left: 0px;
}
.footer{
  background-color: blueviolet;
}
</style>




